package bootstrap

import (
	"blog/internal/repository"
	"blog/internal/repository/impl"
	"gorm.io/gorm"
)

type Repository struct {
	UserRepository    repository.IUserRepository
	ProfileRepository repository.IProfileRepository
}

func NewRepository(db *gorm.DB) *Repository {
	return &Repository{
		UserRepository:    impl.NewUserRepository(db),
		ProfileRepository: impl.NewProfileRepository(db),
	}
}
